#include <bits/stdc++.h>
using namespace std;

char ch;
int main() {
    cin >> ch;
    cout << (int)ch;

    //C
    //scanf("%c", &ch);
    //printf("%d", ch);
    return 0;
}